package com.xdf.data_transmitter.dao;

import com.xdf.data_transmitter.dao.cloud.AlarmMapper;
import com.xdf.data_transmitter.model.Alarm;
import com.xdf.data_transmitter.service.AlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AlarmServiceImpl implements AlarmService {
    
    @Autowired
    private AlarmMapper dao;
    
    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(Alarm record) {
        return dao.insert(record);
    }

    @Override
    public Alarm selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public List<Alarm> selectAll() {
        return dao.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Alarm record) {
        return dao.updateByPrimaryKey(record);
    }
}
